//
//  PhotoDataModel.h
//  WOFishingBoat
//
//  Created by 郑逸凯 on 2019/1/7.
//  Copyright © 2019年 郑逸凯. All rights reserved.
//

#import "BaseModel.h"
#import "PhotoModel.h"
#import "PhotoSectionModel.h"


@interface PhotoDataModel : BaseModel
/**
 根据日期分组数据
 */
@property (nonatomic,strong)NSMutableArray <PhotoSectionModel*>*photoSectionModels;

/**
 不分组的数据
 */
@property (nonatomic,strong)NSMutableArray <PhotoModel*>*photoArray;

/**
 已有的数组上 追加新的数组

 @param photoArray 新的数组
 */
- (void)generatePhotoSectionByAppendArray:(NSArray *)photoArray;
/**
 用于已有photoArray发生改变时，重新生成photoSectionModels
 */
- (void)generatePhotoSectionByCurrentPhotoArray;

- (NSArray *)generatsSelectedPhotoArray;

//- (NSInteger)totalPhotoCount;
- (NSInteger)indexAtTotalWithSection:(NSInteger)section row:(NSInteger)row;
@end


